/*-------------------------------*/


/*          Home-Navbar        */


/*-------------------------------*/

body,
html {
    height: 100%;
}

:root {
    --body-bg-color: #e5f4f9;
    --body-color-light: #8b939c;
    --body-font: "Roboto", sans-serif;
    --page-bg-color: #f2f5f7;
    --body-color: #3d4954;
    --border-color: #b8bec3;
    --placeholder: #ccd0d2;
    --app-bg-dark: #01081f;
    --app-bg-before: linear-gradient(180deg, rgba(1, 8, 31, 0) 0%, rgba(1, 8, 31, 1) 100%);
    --app-bg-before-2: linear-gradient(0deg, rgba(1, 8, 31, 0) 0%, rgba(1, 8, 31, 1) 100%);
    --app-bg-light: #151c32;
    --app-logo: #3d7eff;
    --nav-link: #5e6a81;
    --nav-link-active: #fff;
    --list-item-hover: #0c1635;
    --main-color: #fff;
    --secondary-color: #5e6a81;
    --color-light: rgba(52, 129, 210, .2);
    --warning-bg: #ffe5e5;
    --warning-icon: #ff8181;
    --applicant-bg: #e3fff1;
    --applicant-icon: #61e1a1;
    --close-bg: #fff8e5;
    --close-icon: #fdbc64;
    --draft-bg: #fed8b3;
    --draft-icon: #e9780e;
}

* {
    outline: none;
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

html {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--page-bg-color);
    background-attachment: fixed;
    font-family: var(--body-font);
    color: var(--body-color);
    font-weight: 400;
    margin: 0;
}

.likes,
.year-book,
.author,
.main-menu,
.profile-menu,
.profile,
.header {
    display: flex;
    align-items: center;
}

.book-store {
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    background-color: var(--body-bg-color);
}

.header {
    height: 70px;
    width: 100%;
    background-color: var(--app-bg-dark);
    padding: 0 30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--body-color-light);
    justify-content: space-between;
    flex-shrink: 0;
    margin-bottom: 1px;
}

.header-title {
    font-size: 16px;
    font-weight: 400;
    margin-right: 120px;
    color: #669999;
}

.user-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 15px;
}

.user-profile {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.profile {
    flex-shrink: 0;
}

.profile-menu {
    border-left: 1px solid var(--border-color);
}

.profile svg {
    width: 16px;
    margin: 0 8px 0 15px;
    flex-shrink: 0;
}


/* 登记新书按钮 */

.button-swing {
    color: #65b5f6;
    background-color: transparent;
    border: 1px solid #65b5f6;
    border-radius: 4px;
    padding: 0 16px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.button-swing:focus {
    animation: swing 1s ease;
    animation-iteration-count: 1;
}

@keyframes swing {
    15% {
        transform: translateX(5px);
    }
    30% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(3px);
    }
    65% {
        transform: translateX(-3px);
    }
    80% {
        transform: translateX(2px);
    }
    100% {
        transform: translateX(0);
    }
}